﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Colonisator.Classes
{
    public class Logger
    {
        private StreamWriter _log;
        
        public Logger()
        {
            if (!Directory.Exists(@"Debug\"))
                Directory.CreateDirectory(@"Debug\");

            _log = new StreamWriter(@"Debug\log.txt", false);
        }

        public void Close()
        {
            _log.Close();
        }

        public void WriteLog(string message)
        {
            _log.WriteLine(DateTime.Now + " : " + message);
        }
    }
}
